package com.example.demo.mapper;

import com.example.demo.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserInfoXMLMapper {

    List<UserInfo> selectAll();

    List<UserInfo> selectById(Integer id);

    Integer insert(UserInfo userInfo);

    Integer insert2(@Param("userInfo2")UserInfo userInfo);

    Integer insert3(UserInfo userInfo);

    Integer delete(Integer id);

    Integer update(String name,Integer id);

    Integer insertUserByCondition(UserInfo userInfo);

    Integer insertUserByCondition2(UserInfo userInfo);

    List<UserInfo> selectByCondition(UserInfo userInfo);

    Integer updateByCondition(UserInfo userInfo);

    Integer deleteById (List<Integer> ids);

    List<UserInfo> selectByInclude();
}
